![]() |
PATH![]() |
![]() ![]() |
Returns whether the current theme would draw in color in the given environment.
pascal Boolean IsThemeInColor (
SInt16 inDepth,
Boolean inIsColorDevice);
To be consistent with the current theme, your application can call the IsThemeInColor function to determine whether or not the Appearance Manager is drawing the theme in color or black and white. If the function returns true , you should draw in color; if it returns false , you should draw in black and white. Note that the Appearance Manager may draw a theme in black and white not only because of the current bit depth or device type, but also because the theme may have defined black-and-white elements, such as the "Black & White" accent color in the platinum appearance.